import React from 'react';
import { HashRouter, Switch } from 'react-router-dom'
import mapRoutes, { routes } from './routes';
import { ConfigProvider, message, Spin } from 'antd';
import "./App.css"
import moment from 'moment';
import zhCN from 'antd/es/locale/zh_CN';
import 'moment/locale/zh-cn';
import 'antd/dist/antd.css';
import './index.css';
moment.locale('zh-cn');
function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <HashRouter>
        <div className="App">
          <Switch>
            {mapRoutes(routes)}
          </Switch>
        </div>
      </HashRouter>
    </ConfigProvider>

  );
}

export default App;
